package General;

public class Monrunnable implements Runnable 
{
	private int solde;
	public void run()
	{

			for(int i=0;i<50;i++)
			{
				incermenter();
				System.out.println("le solde est de : "+solde);
				
			}
	}
	
	public  synchronized  void incermenter()
	{
		int i=solde;
		solde=i+1;
	}

}
